import request from '@/utils/request'

// 查询入库记录列表
export function listReceipt(query) {
  return request({
    url: '/module/receipt/list',
    method: 'get',
    params: query
  })
}

// 查询入库记录详细
export function getReceipt(id) {
  return request({
    url: '/module/receipt/' + id,
    method: 'get'
  })
}

// 新增入库记录
export function addReceipt(data) {
  return request({
    url: '/module/receipt',
    method: 'post',
    data: data
  })
}

// 修改入库记录
export function updateReceipt(data) {
  return request({
    url: '/module/receipt',
    method: 'put',
    data: data
  })
}

// 删除入库记录
export function delReceipt(id) {
  return request({
    url: '/module/receipt/' + id,
    method: 'delete'
  })
}

//修改  同意入库
export function putReceipt(data) {
  return request({
    url: '/module/receipt/put/export2',
    method: 'put',
    data
  })
}

